//
//  DSLearnStatis.m
//  DSJY
//
//  Created by 冯华强 on 16/10/17.
//  Copyright © 2016年 dsjy. All rights reserved.
//  我的学习统计

#import "DSLearnStatis.h"

@implementation DSLearnStatis

- (NSString *)totalscore
{
    if (_totalscore == nil) {
        _totalscore = @"0";
    }
    return _totalscore;
}

- (NSString *)totalusetime
{
    if (_totalusetime == nil) {
        _totalusetime = @"0";
    }
    return _totalusetime;
}

- (void)setTodaysts:(NSInteger)todaysts
{
    _todaysts = todaysts;
    
    if (todaysts >= 5 && todaysts < 10) {
        self.thumbsUp = 1;
    }else if (todaysts >= 10){
        self.thumbsUp = 3;
    }
}

@end
